'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  //注册
  router.post("/api/registry",controller.user.registry);
  //登录
  router.post("/api/login",controller.user.login);
  //单数据查询
  router.get("/api/item/:id",controller.massage.item);
  //上传图片
  router.post("/api/updataFaceImage",controller.user.updataFaceImage)
  // RESTful 风格
  router.resources('massage', '/api/massage', controller.massage);
  //获取token
  router.get("/api/user",controller.user.getoken);


};
